package edu.neu.swc.cloud.domain;

import java.util.ArrayList;
import java.util.List;

public class Factory {
    private int fa_id;
    private String fa_name;
    private String fa_desc;
    private String fa_spon;
    private String fa_conn;
    private int fa_state;//工厂状态，1表示关停，2表示开启，构造时默认为关停

    //添加order列表
    private List<Order> orderList;//可为空，同样在service层中封装

    //添加equipment列表
    private List<Equipment> equipmentList;//可为空，在service层封装

    public Factory() {
        this.fa_state = 0;//默认状态为关停
        this.equipmentList = new ArrayList<>();
        this.orderList = new ArrayList<>();
    }

    public int getFa_id() {
        return fa_id;
    }

    public void setFa_id(int fa_id) {
        this.fa_id = fa_id;
    }

    public String getFa_name() {
        return fa_name;
    }

    public void setFa_name(String fa_name) {
        this.fa_name = fa_name;
    }

    public String getFa_desc() {
        return fa_desc;
    }

    public void setFa_desc(String fa_desc) {
        this.fa_desc = fa_desc;
    }

    public String getFa_spon() {
        return fa_spon;
    }

    public void setFa_spon(String fa_spon) {
        this.fa_spon = fa_spon;
    }

    public List<Order> getOrderList() {
        return orderList;
    }

    public void setOrderList(List<Order> orderList) {
        this.orderList = orderList;
    }

    public String getFa_conn() {
        return fa_conn;
    }

    public void setFa_conn(String fa_conn) {
        this.fa_conn = fa_conn;
    }

    public int getFa_state() {
        return fa_state;
    }

    public void setFa_state(int fa_state) {
        this.fa_state = fa_state;
    }

    public List<Equipment> getEquipmentList() {
        return equipmentList;
    }

    public void setEquipmentList(List<Equipment> equipmentList) {
        this.equipmentList = equipmentList;
    }

    @Override
    public String toString() {
        return "Factory{" + "fa_id=" + fa_id + ", fa_name='" + fa_name + '\'' + ", fa_desc='" + fa_desc + '\'' + ", fa_spon='" + fa_spon + '\'' + ", fa_conn='" + fa_conn + '\'' + ", fa_state=" + fa_state + ", orderList=" + orderList + ", equipmentList=" + equipmentList + '}';
    }
}
